

// const Home = ()=> import('../../page/Home')
// const Login = ()=> import('../../page/Home')
// const Register = ()=> import('../../page/Register')
// const Search = ()=> import('../../page/Search')
export default [
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        name:'home',
        component:()=>import('../../page/Home')
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('../../page/Login'),
        meta:{
            isHidden:true
        }
    },
    {
        path:'/register',
        name:'register',
        component:()=>import('../../page/Register'),
        meta:{
            isHidden:true
        }
    },
    {
        path:'/search/:keyword?',
        name:'search',
        component:()=>import('../../page/Search')
    },
    {
        path:'/detail/:skuId',
        name:'detail',
        component: () => import("../../page/Detail"),
    },
    {
        path:'/addCartSuccess/',
        name:'addCartSuccess',
        component: () => import("../../page/AddCartSuccess"),
    },
    {
        path:'/shopCart/',
        name:'shopCart',
        component: () => import("../../page/ShopCart"),
    },
    {
        path: "/trade",
        name: "trade",
        component: () => import("@/page/Trade"),
      },
      {
        path: "/pay",
        name: "pay",
        component: () => import("@/page/Pay"),
      },
      {
        path: "/paySuccess",
        name: "paySuccess",
        component: () => import("@/page/PaySuccess"),
      },
      {
        path: "/center",
        name: "center",
        component: () => import("@/page/Center"),
        children:[
           {
            path:'myOrder',
            name: "myOrder",
            component: () => import("@/page/Center/components/MyOrder"),
           },
           {
            path:'teamOrder',
            name: "teamOrder",
            component: () => import("@/page/Center/components/TeamOrder"),
           },
        ]
      },
]